﻿#include "mainwindow.h"
#include "./ui_mainwindow.h"
#include <QMessageBox>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButtonThis_clicked()
{
    QMessageBox::about(this, tr("关于本程序"),
                       tr("闪屏程序，版本 1.0，\r\n使用外挂资源 splash.rcc。"));
}


void MainWindow::on_pushButtonQt_clicked()
{
    QMessageBox::aboutQt(this, tr("关于 Qt"));
}

